﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ManageUser.aspx.vb" Inherits="WSADProject.ManageUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
    <div style="text-align:center"><asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Admin/AddTags.aspx">Add Tags</asp:HyperLink>&nbsp;&nbsp;&nbsp;
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/ManageUser.aspx">Manage Users</asp:HyperLink> &nbsp;</div></asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth ="1" BorderColor ="WhiteSmoke" Width="481px" DataSourceID="SqlDataSource1" AllowPaging="True">
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />
            <asp:BoundField DataField="fullname" HeaderText="Full Name" ReadOnly="True" SortExpression="fullname" />
            <asp:BoundField DataField="UserID" HeaderText="UserID" InsertVisible="False" SortExpression="UserID" Visible="False" />
            <asp:TemplateField HeaderText="Admin">
                <EditItemTemplate>
                    <asp:CheckBox runat="server" ID ="chkAdmin"/>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox runat="server" ID ="chkAdmin"  />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:fishconn %>" ProviderName="<%$ ConnectionStrings:fishconn.ProviderName %>" SelectCommand="SELECT aspnet_Users.UserName, tblProfile.FirstName + ' ' + tblProfile.LastName AS fullname, aspnet_Users.UserID FROM (aspnet_Users INNER JOIN tblProfile ON aspnet_Users.UserName = tblProfile.UserName)"></asp:SqlDataSource>
    <asp:Button ID="btnUpdate" runat="server" Text="Update" />
    <ajaxToolkit:ConfirmButtonExtender ID="btnUpdate_RoundedCornersExtender" runat="server" Enabled="True" TargetControlID="btnUpdate" ConfirmText="Are you sure you want to Update? This action cannot be undone.">
                </ajaxToolkit:ConfirmButtonExtender>
</asp:Content>
